{% extends "base.html" %}

{% block content %}
<div class="container mt-5">
    <div class="card shadow-sm">
        <div class="card-header bg-primary text-white">
            <h4 class="mb-0">调整 {{ progress.topic.name }} - {{ progress.stage }} 进度评分</h4>
        </div>
        <div class="card-body">
            <form method="post">
                {% csrf_token %}
                <div class="mb-3">
                    <label for="score" class="form-label">评分</label>
                    <input type="number" class="form-control" id="score" name="score" value="{{ progress.score }}" required>
                </div>
                <div class="mb-3">
                    <label for="comment" class="form-label">评语</label>
                    <textarea class="form-control" id="comment" name="comment" rows="5">{{ progress.comment }}</textarea>
                </div>
                <button type="submit" class="btn btn-primary">保存调整</button>
            </form>
        </div>
    </div>
</div>
{% endblock %}